import Trame from './packages/frame/index';
import Flop from './packages/components/flop/index'
import Counto from './packages/components/counto/index'
import Marquee from './packages/components/marquee/index'

const components = [Flop, Counto,Marquee];

const install = function (Vue, opts = {}) {

  components.forEach(component => {
    Vue.component(component.name, component);
  });

  Vue.prototype.$trame = Trame;

};

if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue);
}

export default {
  version: '1.2.5',
  install,
  Flop,
  Counto,
  Marquee
}